package fr.cpe.dp.projet2.model.musicPlayer;

import javax.sound.midi.ControllerEventListener;

public class MusicPlayerObservable extends DecoratorMusicPlayer {

	public MusicPlayerObservable(IMusicPlayer musicPlayer) {
		super(musicPlayer);
	}
	
	public void addControllerEventListener(ControllerEventListener musicListener){
		int[] listenerTab = new int[128];
		for(int i = 0; i<128; i++){
			listenerTab[i] = i;
		}
		this.getSequencer().addControllerEventListener(musicListener, listenerTab);
	}

}
